From: Didier Roche Date: Thu, 14 Sep 2017 07:30:16 +0000 (+0200) Subject: Make key-above-tab in switcher more consistent X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~51 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9f0bb526f7abac137b7d3cbaca9e41b23f29fd3d;p=gnome-shell.git Make key-above-tab in switcher more consistent Ensure that key-above-tab for selecting window application is consistent with the down key. After focus an application in the switcher: - if you press down, the window thumbnails are previewed, and first element is selected - if you press key-above-tab, the window thumbnails are previewed, however the second element is directly selected. Make both interactions always select the first element. https://bugzilla.gnome.org/show_bug.cgi?id=786009 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 265d81a1f..273bfd36a 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -158,7 +158,10 @@ var AppSwitcherPopup = new Lang.Class({ _keyPressHandler: function(keysym, action) { if (action == Meta.KeyBindingAction.SWITCH_GROUP) { - this._select(this._selectedIndex, this._nextWindow()); + if (!this._thumbnailsFocused) + this._select(this._selectedIndex, 0); + else + this._select(this._selectedIndex, this._nextWindow()); } else if (action == Meta.KeyBindingAction.SWITCH_GROUP_BACKWARD) { this._select(this._selectedIndex, this._previousWindow()); } else if (action == Meta.KeyBindingAction.SWITCH_APPLICATIONS) {